﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PIMS.YongXiang
{

    /// <summary>
    /// 2.38 获取包装批号接口 返回的实体类
    /// </summary>
    //public class PackageBatch
    //{
    //    /// <summary>
    //    /// YX-A-24-210701/S3/致密料/围板箱/方硅芯
    //    /// </summary>
    //    public string PACKAGENUMBER { get; set; }
    //}

    /// <summary>
    /// 接口返回结果 实体类
    /// </summary>
    public class Result
    {
        /// <summary>
        /// 
        /// </summary>
        public ResultData data { get; set; }
        /// <summary>
        /// 结果信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int flage { get; set; }
    }

    public class ResultData
    {
    }

    /// <summary>
    /// company 公司编码
    /// supplyStoreOrgUnit 供方库存组织
    /// bizType 业务类型
    /// transactionType 事务类型
    /// storageOrgUnit 需方库存组织
    /// adminOrgUnit 部门
    /// requestPerson 申请人
    /// costCenterOrgUnit 成本中心
    /// material 物料编码
    /// warehouse 需方仓库编码
    /// supplyWarehouse 供方仓库编码
    /// project 项目号
    /// accountViewOut 出库科目
    /// </summary>
    public class Code
    {
        /// <summary>
        /// 
        /// </summary>
        public string number { get; set; }
    }

    /// <summary>
    /// {"entry":[{"material":null,"qty":0,"warehouse":null,"supplyWarehouse":null,"project":null,"adminOrgUnit":null,"costCenterOrgUnit":null,"accountViewOut":null}]}
    /// </summary>
    public class EntryItem
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public Code material { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int qty { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string lot { get; set; }
        /// <summary>
        /// 需方仓库编码
        /// </summary>
        public Code warehouse { get; set; }
        /// <summary>
        /// 供方仓库编码
        /// </summary>
        public Code supplyWarehouse { get; set; }
        /// <summary>
        /// 项目号
        /// </summary>
        public Code project { get; set; }
        /// <summary>
        /// 行政组织
        /// </summary>
        public Code adminOrgUnit { get; set; }
        /// <summary>
        /// 成本中心
        /// </summary>
        public Code costCenterOrgUnit { get; set; }
        /// <summary>
        /// 出库科目
        /// </summary>
        public Code accountViewOut { get; set; }
    }

    /// <summary>
    /// 箱号信息
    /// </summary>
    public class CartonInfo
    {
        /// <summary>
        /// 公司编码
        /// </summary>
        public string company { set; get; }
        /// <summary>
        /// 批次代号x2
        /// </summary>
        public string lot { get; set; }
        /// <summary>
        /// 业务日期
        /// </summary>
        public string billbizdate { set; get; }
        /// <summary>
        /// 箱号
        /// </summary>
        public string cartonNumber { set; get; }
        /// <summary>
        /// 型号
        /// </summary>
        public string materialcase { get; set; }
        /// <summary>
        /// 车号（非必填）
        /// </summary>
        public string carNumber { set; get; }
        /// <summary>
        /// 定制料信息（非必填）
        /// </summary>
        public string specialInfo { set; get; }
        /// <summary>
        /// "生产线" （非必填）
        /// </summary>
        public string packageline { set; get; }
        /// <summary>
        /// 粒径
        /// </summary>
        public string particleSize { set; get; }
        /// <summary>
        /// 毛重 (包装系统称重，所以给一个固定值，辅材+净重的固定值)
        /// </summary>
        public string grossWeight { set; get; }
        /// <summary>
        /// 净重
        /// </summary>
        public string netWeight { set; get; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string material { set; get; }
        /// <summary>
        /// 生产批号
        /// </summary>
        public string manufacturebatch { set; get; }
        /// <summary>
        /// 包装批号
        /// </summary>
        public string packageNumber { set; get; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public int packageType { get; set; }
        /// <summary>
        /// 袋信息
        /// </summary>
        public List<string> detail { set; get; }
    }


    public class Palletbject
    {
        public string palletNumber { get; set; }
        public string[] entries { get; set; }
    }

    public class CartonHistory
    {
        public string CARTONNUMBER { get; set; }
        public DateTime PACKAGEDATE { get; set; }
        public string MATERIALNUMBER { get; set; }
        public string MATERIALNAME { get; set; }
        public string MODEL { get; set; }
        public string PACKAGENUMBER { get; set; }
        public object PALLETNUMBER { get; set; }
        public string PRODUCTCLASS { get; set; }
        public object SALEGRADE { get; set; }
        public float GROSSWEIGHT { get; set; }
        public float NETWEIGHT { get; set; }
        public string MATERIALCASE { get; set; }
        public string BATCHSTATUS { get; set; }
        public string SIZETYPE { get; set; }
        public string MATERIALCASEREMA { get; set; }
        public object QUALITYGRADE { get; set; }
        public string MANUFACTUREBATCH { get; set; }
        public string ASSEMBLYLINE { get; set; }
        public string SALEGRADETYPE { get; set; }
        public object CARTONPACKAGETYPE { get; set; }
        public string PARTICLSIZE { get; set; }
        public DateTime CREATTIME { get; set; }
        public string BILLSTATUS { get; set; }
        public object SPEICIALINFO { get; set; }
        public string ISQUALIFIED { get; set; }
        public object LOT { get; set; }
        public string ISFLATWAREHOUSE { get; set; }
    }

}
